package com.cskaoyan.bean;

import lombok.Data;
import org.w3c.dom.stylesheets.LinkStyle;

import java.util.List;

/**
 * @author stone
 * @date 2021/11/29 15:37
 */
@Data
public class BaseData {
    Integer page;
    Integer limit;
    Integer total;
    Integer pages;
    List data;

    public static BaseData list(List list,long total) {
        BaseData data1 = new BaseData();
        data1.setData(list);
        data1.setTotal((int) total);
        return data1;
    }
}
